<?php


namespace app\models\goods;


use think\Model;

class ExchangeOderModel extends Model
{
    protected $name = 'exchange_order';

    protected $autoWriteTimestamp = true;

    protected $status = [
        1 => "待发货", 2 => "已发货", 3 => "已完成"
    ];

    public function getOrderStatusAttr($value)
    {
        return  $this->status[$value];
    }
}